package com.demo.spring.bean注解;

import org.springframework.context.annotation.Bean;

public class Config {
	
	@Bean
	public Bean2 bean2() {
		return new Bean2();
	}
	
	@Bean
	public Bean3 bean3(Bean2 bean2) {
		return new Bean3();
	}

}
